package com.metagurukul.metaspace.models.beans;


/**
 * @author ritesh
 * created date : 5/10/2012
 */
public class Role {
	private int roleId = -1;
	private String roleName = null;
	/**
	 * @return roleId int
	 */
	public int getRoleId() {
		return roleId;
	}
	/**
	 * @param roleId
	 */
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	/**
	 * @return roleName String
	 */
	public String getRoleName() {
		return roleName;
	}
	/**
	 * @param roleName
	 */
	public void setRoleName(String roleName) {
		if(this.roleName != null && 50 < this.roleName.length()){
			throw new StringIndexOutOfBoundsException("Role name size too long");
		}
		this.roleName = roleName;
	}
	
}
